package com.dream.inspect.modules.business.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.dream.inspect.common.utils.PageUtils;
import com.dream.inspect.common.utils.Query;
import com.dream.inspect.modules.business.dao.CodeProvinceDao;
import com.dream.inspect.modules.business.entity.CodeProvinceEntity;
import com.dream.inspect.modules.business.service.CodeProvinceService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("codeProvinceService")
public class CodeProvinceServiceImpl extends ServiceImpl<CodeProvinceDao, CodeProvinceEntity> implements CodeProvinceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CodeProvinceEntity> page = this.selectPage(
                new Query<CodeProvinceEntity>(params).getPage(),
                new EntityWrapper<CodeProvinceEntity>()
        );

        return new PageUtils(page);
    }

}
